---
title: Calendar
description: A date field component that allows users to enter and edit date.
component: true
links:
  doc: https://ui.shadcn.com/docs/components/calendar
  api: https://react-day-picker.js.org/
---

## Installation

<Tabs defaultValue="cli">

<TabsList>
<TabsTrigger value="cli">CLI</TabsTrigger>
<TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">

```bash
npx @udecode/plate-ui@latest add calendar
```

</TabsContent>

<TabsContent value="manual">

<Steps>

<Step>

Install the following dependencies:

```bash
npm install react-day-picker date-fns
```

</Step>

<Step>

Copy and paste the following code into your project.

</Step>

<ComponentSource name="calendar" />

<Step>

Update the import paths to match your project setup.

</Step>

</Steps>

</TabsContent>

</Tabs>
